﻿using UnityEngine;
using System.Collections;

public class LifePackage : MonoBehaviour {

	// Use this for initialization
	public int Life = 1;

	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	public void GetHurt (int life = 1) {
		Life -= life;
		if (Life <= 0) {
			destory();
		}
	}

	void destory () {
		Destroy(gameObject);
	}
}
